package com.sky.his.api.mis.controller.form;

import lombok.Data;

import javax.validation.constraints.*;

@Data
public class UpdateDeptForm {

    @NotNull
    private Integer deptId;

    @NotBlank(message = "deptName内容不能为空")
    private String deptName;

    @NotBlank(message = "tel内容不能为空")
    @Pattern(regexp = "^1[1-9]\\d{9}$", message = "tel内容不正确")
    private String tel;

    @NotBlank(message = "email内容不能为空")
    @Email(message = "email内容不正确")
    private String email;

    @NotBlank(message = "desc不能为空")
    private String desc;
}
